function dogRun() {
  var dog = $("div.dog");
  var timer2 = setTimeout(function () {
    if (dog.css("background-position") == "0px 0px")
      dog.css({"background-position": "-80px -2px"}); else
      dog.css({"background-position": "0px 0px"});
    dogRun();
  }, 130);
}
